#define _CRT_SECURE_NO_WARNINGS 
#include<stdio.h>
int main()
{
	int a = 0;
	int b = 0;
	int c = 0;
	int ret = 0;
	scanf("%d %d %d", &a, &b, &c);
	if (a < b)
		{
			ret = a;
			a = b;
			b = ret;
		}
	if (a < c)
		{
			ret = a;
			a = c;	
			c = ret;
		}
	if (b < c)
		{
			ret = b;
			b = c;
			c = ret;
		}
	printf("%d %d %d", a, b, c);
	return 0;
}